package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;


/**
 * 考研资料
 * 数据库通用操作实体类（普通增删改查）
 * 赵润波 2023.5.25
 */
@TableName("kaoyanziliao")
public class KaoyanziliaoEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public KaoyanziliaoEntity() {
		
	}
	
	public KaoyanziliaoEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 主键id
	 */
	@TableId(type = IdType.AUTO)
	private Long id;
	/**
	 * 资料编号
	 */
					
	private String ziliaobianhao;
	
	/**
	 * 资料名称
	 */
					
	private String ziliaomingcheng;
	
	/**
	 * 图片
	 */
					
	private String tupian;
	
	/**
	 * 资料内容
	 */
					
	private String ziliaoneirong;
	
	/**
	 * 资料文件
	 */
					
	private String ziliaowenjian;
	
	/**
	 * 资料详情
	 */
					
	private String ziliaoxiangqing;
	
	/**
	 * 历年真题
	 */
					
	private String linianzhenti;
	
	/**
	 * 复习笔记
	 */
					
	private String fuxibiji;
	
	/**
	 * 赞
	 */
					
	private Integer thumbsupnum;
	
	/**
	 * 踩
	 */
					
	private Integer crazilynum;
	
	
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 设置：资料编号
	 */
	public void setZiliaobianhao(String ziliaobianhao) {
		this.ziliaobianhao = ziliaobianhao;
	}
	/**
	 * 获取：资料编号
	 */
	public String getZiliaobianhao() {
		return ziliaobianhao;
	}
	/**
	 * 设置：资料名称
	 */
	public void setZiliaomingcheng(String ziliaomingcheng) {
		this.ziliaomingcheng = ziliaomingcheng;
	}
	/**
	 * 获取：资料名称
	 */
	public String getZiliaomingcheng() {
		return ziliaomingcheng;
	}
	/**
	 * 设置：图片
	 */
	public void setTupian(String tupian) {
		this.tupian = tupian;
	}
	/**
	 * 获取：图片
	 */
	public String getTupian() {
		return tupian;
	}
	/**
	 * 设置：资料内容
	 */
	public void setZiliaoneirong(String ziliaoneirong) {
		this.ziliaoneirong = ziliaoneirong;
	}
	/**
	 * 获取：资料内容
	 */
	public String getZiliaoneirong() {
		return ziliaoneirong;
	}
	/**
	 * 设置：资料文件
	 */
	public void setZiliaowenjian(String ziliaowenjian) {
		this.ziliaowenjian = ziliaowenjian;
	}
	/**
	 * 获取：资料文件
	 */
	public String getZiliaowenjian() {
		return ziliaowenjian;
	}
	/**
	 * 设置：资料详情
	 */
	public void setZiliaoxiangqing(String ziliaoxiangqing) {
		this.ziliaoxiangqing = ziliaoxiangqing;
	}
	/**
	 * 获取：资料详情
	 */
	public String getZiliaoxiangqing() {
		return ziliaoxiangqing;
	}
	/**
	 * 设置：历年真题
	 */
	public void setLinianzhenti(String linianzhenti) {
		this.linianzhenti = linianzhenti;
	}
	/**
	 * 获取：历年真题
	 */
	public String getLinianzhenti() {
		return linianzhenti;
	}
	/**
	 * 设置：复习笔记
	 */
	public void setFuxibiji(String fuxibiji) {
		this.fuxibiji = fuxibiji;
	}
	/**
	 * 获取：复习笔记
	 */
	public String getFuxibiji() {
		return fuxibiji;
	}
	/**
	 * 设置：赞
	 */
	public void setThumbsupnum(Integer thumbsupnum) {
		this.thumbsupnum = thumbsupnum;
	}
	/**
	 * 获取：赞
	 */
	public Integer getThumbsupnum() {
		return thumbsupnum;
	}
	/**
	 * 设置：踩
	 */
	public void setCrazilynum(Integer crazilynum) {
		this.crazilynum = crazilynum;
	}
	/**
	 * 获取：踩
	 */
	public Integer getCrazilynum() {
		return crazilynum;
	}

}
